<br />
<br />
<a href="/scaffold">voltar</a><br /><br />
<TABLE id="table_listar_dados" cellspacing="0" summary="Listagem de campos na tabela - Nebulae System / Scaffold">
 <CAPTION>Listagem</CAPTION>
 <thead>
  <TR>
  	<?
  	if(isset($conteudos['colunas']))
 	foreach($conteudos['colunas'] as $coluna)
 	{
 		echo "   <TH>" . $coluna->Field . "</TH>";
 	}
 	if(count($conteudos['colunas']) != 0)
 	{
 		echo "   <TH>" . "Editar" . "</TH>";
 		echo "   <TH>" . "Apagar" . "</TH>";
 	}
 	?>
  </TR>
  <TR>
  	<?
  	if(isset($conteudos['colunas']))
 	foreach($conteudos['colunas'] as $coluna)
 	{
 		echo "   <TH>" . $coluna->Type . "  " . $coluna->Null . "</TH>"; 
 	}
 	if(isset($conteudos['colunas']))
 	if(count($conteudos['colunas']) != 0)
 	{
 		echo "   <TH><CENTER>" . "-" . "</CENTER></TH>";
 		echo "   <TH><CENTER>" . "-" . "</CENTER></TH>";
 	}
 	?>
  </TR>
 </thead>
 <tbody>
 <?
 	if(isset($conteudos['data']))
	foreach($conteudos['data'] as $data)
 	{
 		echo "   <TR>";
 		for($i = 0; $i < count($data)/2; $i++)
 		{
 			echo "    <TD>" . $data[$i] . "</TD>";
 		}
 		echo "   <TH><CENTER><a href='/scaffold/editar/" . $this->registry['Uri']->getURIsegmento(2) . "/" . $data[0] . "'><img src='/public/images/icons/pencil.png'></img></a></CENTER></TH>";
 		echo "   <TH><CENTER><a href='/scaffold/eliminar/" . $this->registry['Uri']->getURIsegmento(2) . "/" . $data[0] . "'><img src='/public/images/icons/delete.png'></img></a></CENTER></TH>";
 		echo "   </TR>";
 	}
  ?>
 </tbody>
</TABLE>
<br />
<a href="/scaffold/adicionar/<?= $this->registry['Uri']->getURIsegmento(2); ?>">Nova Entrada</a><br />